package com.spring.common.entity;

import lombok.experimental.Delegate;

import java.util.ArrayList;
import java.util.List;

public class LiQin {
    private interface QiaoXin {
        boolean add(String name);
    }

    @Delegate(types = {QiaoXin.class})
    private List<String> list = new ArrayList<String>();

    public static void main(String[] args) {
        LiQin l = new LiQin();
        l.add("李沁");
    }
}

